feat: Slack AI 스레드 댓글 및 대화 이력 기능 추가(재PR)#382
Merged
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 Walkthrough개요Slack AI 응답에 스레드 인식 기능을 추가하여, 봇이 스레드 내 메시지 이력을 수집하고 컨텍스트를 포함한 응답을 생성할 수 있도록 개선했습니다. SlackClient에 스레드 관련 API 메서드를 추가하고, SlackAIService의 메서드 서명을 확장했으며, 봇 토큰 설정을 추가했습니다. 변경 사항
시퀀스 다이어그램sequenceDiagram
participant Controller as SlackEventController
participant AIService as SlackAIService
participant Client as SlackClient
participant Claude as ClaudeClient
Controller->>Controller: 이벤트 검증 & 컨텍스트 추출
Controller->>AIService: processAIQuery(text, channelId, threadTs, cachedReplies)
alt 스레드 존재 & AI 회신 없음
AIService->>Client: fetchAIThreadReplies(channelId, threadTs)
Client-->>AIService: 스레드 메시지 목록
end
AIService->>AIService: buildConversationHistory(threadReplies)
AIService->>Claude: 대화 이력 포함 AI 요청
Claude-->>AIService: AI 응답
AIService->>Client: postThreadReply(channelId, threadTs, response)
Client-->>AIService: 성공/실패
코드 리뷰 예상 시간🎯 3 (Moderate) | ⏱️ ~25 분 관련 PR
제안 라벨
래빗의 시
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔍 개요
🚀 주요 변경 내용
💬 참고 사항
✅ Checklist (완료 조건)